package com.mark.anto.condition;


import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * @Description: 自定义的系统条件注解
 * @Author: Mark
 * @CreateDate: 2019/9/1 9:24
 * @Version: 3.00.001
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Conditional(OnSystemPropertyCondition.class)
public @interface SystemPropertyCondition {

    /**
     * Java 系统属性名称
     * @return String
     */
    String name();

    /**
     * Java 系统属性值
     * @return String
     */
    String value();
}
